﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for BKIDetail
/// </summary>
/// 
namespace CE.CarInsurance
{
    public class BKIDetail
    {
        private string _userid;
        private string _effdate;
        private string _risk;
        private string _garage;
        private string _cartype;
        private string _caruse;
        private string _make;
        private string _model;
        private string _caryear;
        private double _ncb;
        private double _deduct;
        private double _deductlib;
        private string _drvflag;
        private string _drvyear;
        private string _compreq;

        public BKIDetail()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        public string UserId
        {
            get { return _userid; }
            set { _userid = value; }
        }

        public string EffDate
        {
            get { return _effdate; }
            set { _effdate = value; }
        }

        public string Risk
        {
            get { return _risk; }
            set { _risk = value; }
        }
        public string Garage
        {
            get { return _garage; }
            set { _garage = value; }
        }
        public string CarType
        {
            get { return _cartype; }
            set { _cartype = value; }
        }

        public string CarUse
        {
            get { return _caruse; }
            set { _caruse = value; }
        }
        public string Make
        {
            get { return _make; }
            set { _make = value; }
        }
        public string Model
        {
            get { return _model; }
            set { _model = value; }
        }

        public string CarYear
        {
            get { return _caryear; }
            set { _caryear = value; }
        }
        public double NCB
        {
            get { return _ncb; }
            set { _ncb = value; }
        }
        public double Deduct
        {
            get { return _deduct; }
            set { _deduct = value; }
        }
        public double DeductLib
        {
            get { return _deductlib; }
            set { _deductlib = value; }
        }
        public string DrvFlag
        {
            get { return _drvflag; }
            set { _drvflag = value; }
        }
        public string DrvYear
        {
            get { return _drvyear; }
            set { _drvyear = value; }
        }
        public string CompReq
        {
            get { return _compreq; }
            set { _compreq = value; }
        }

        public void ClearFields()
        {   //default userid = 00001 for Bangkok Insurance
            _userid = "06411";
            _effdate = "";
            _risk = "";
            _garage = "";
            _cartype = "";
            _caruse = "";
            _make = "";
            _model = "";
            _caryear = "";
            _ncb = 0;
            _deduct = 0;
            _deductlib = 0;
            _drvflag = "";
            _drvyear = "";
            _compreq = "";
        }
    }
}